﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_21_2021
{
    class shopNPC:NPC
    {
        private string item;
        private string name;
        
        public string Item { get => item; set => item = value; }

        public override void Speak()
        {
            Console.WriteLine("NPC:{0},我有{1}商品，你要吗？",this.Name,this.item);
        }

        public shopNPC(string name,NPCType type,string item):base(name,type)
        {
            this.item = item;
        }
    }
}
